Process(RasterImage,IList<PageAlignment>) Method

Summary

Performs field processing on the form image.

Syntax
C#
VB
C++
public void Process( 
   RasterImage form, 
   IList<PageAlignment> formAlignment 
) 
  
Public Overloads Sub Process( _ 
   ByVal form As RasterImage, _ 
   ByVal formAlignment As IList(Of PageAlignment) _ 
)  
public: 
void Process(  
   RasterImage^ form, 
   IList<PageAlignment^>^ formAlignment 
)  

Parameters

form
Form image.

formAlignment
A value that indicates the Form Alignment. It aligns the Master Form's fields to this form field. If it is null the fields will be aligned depending on the image resolution.

Example

For a complete example on using the forms recognition and processing, refer to the FormProcessingEngine example.

This example processes form.

C#
VB
using Leadtools; 
using Leadtools.Barcode; 
using Leadtools.Codecs; 
using Leadtools.Forms.Common; 
using Leadtools.Ocr; 
using Leadtools.Forms.Processing; 
using Leadtools.Forms.Recognition; 
using Leadtools.Forms.Recognition.Barcode; 
using Leadtools.Forms.Recognition.Ocr; 
 
///This method processes the recognized form. 
private void ProcessForm(FormProcessingEngine processingEngine, MyForm form) 
{ 
   form.ProcessingPages = form.Master.ProcessingPages; 
   processingEngine.Pages.Clear(); 
   processingEngine.Pages.AddRange(form.ProcessingPages); 
   processingEngine.Process(form.Image, form.Alignment); 
} 
Imports Leadtools 
Imports Leadtools.Barcode 
Imports Leadtools.Codecs 
Imports Leadtools.Forms.Common 
Imports Leadtools.Ocr 
Imports Leadtools.Forms.Processing 
Imports Leadtools.Forms.Recognition 
Imports Leadtools.Forms.Recognition.Barcode 
Imports Leadtools.Forms.Recognition.Ocr 
 
'''This method processes the recognized form. 
Private Sub ProcessForm(ByVal processingEngine As FormProcessingEngine, ByVal form As MyForm) 
   form.ProcessingPages = form.Master.ProcessingPages 
   processingEngine.Pages.Clear() 
   processingEngine.Pages.AddRange(form.ProcessingPages) 
   processingEngine.Process(form.Image, form.Alignment) 
End Sub 

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Processing Assembly